<form id="add-form" role="form" data-toggle="validator" method="POST" action="<?= Tools::siteurl("admin/add") ?>">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-group">
                <label for="role_id" class="control-label">组别:</label>
                <select name="row[role_id]" class="form-control multiselect selectpicker" required="required">
                    <?= $roleoptions; ?>
                </select>
            </div>
            <div class="form-group">
                <label for="username" class="control-label">用户名:</label>
                <input type="text" class="form-control" id="username" name="row[username]" value="" pattern="[A-Za-z0-9_]{3,}" required="required" />
            </div>
            <div class="form-group">
                <label for="nickname" class="control-label">昵称:</label>
                <input type="text" class="form-control" id="nickname" name="row[nickname]" value="" required="required" />
            </div>
            <div class="form-group">
                <label for="password" class="control-label">密码:</label>
                <input type="password" class="form-control" id="password" name="row[password]" value="" required="required" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label">状态:</label>
        <input type="radio" name="row[status]" value="normal" id="status-normal" checked />
        <label for="status-normal">正常</label>
        <input type="radio" name="row[status]" value="hidden" id="status-hidden" />
        <label for="status-hidden">隐藏</label>
    </div>
</form>